<!DOCTYPE HTML>
<html lang="en" >
    
    <head>
        
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <title>第三节课 | 你好,欢迎来到MyNote</title>
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <meta name="description" content="">
        <meta name="generator" content="GitBook 2.6.7">
        
        
        <meta name="HandheldFriendly" content="true"/>
        <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="apple-mobile-web-app-status-bar-style" content="black">
        <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../../gitbook/images/apple-touch-icon-precomposed-152.png">
        <link rel="shortcut icon" href="../../gitbook/images/favicon.ico" type="image/x-icon">
        
    <link rel="stylesheet" href="../../gitbook/style.css">
    
        
        <link rel="stylesheet" href="../../gitbook/plugins/gitbook-plugin-expandable-chapters-small/expandable-chapters-small.css">
        
    
        
        <link rel="stylesheet" href="../../gitbook/plugins/gitbook-plugin-highlight/website.css">
        
    
        
        <link rel="stylesheet" href="../../gitbook/plugins/gitbook-plugin-search/search.css">
        
    
        
        <link rel="stylesheet" href="../../gitbook/plugins/gitbook-plugin-fontsettings/website.css">
        
    
    

        
    
    
    <link rel="next" href="../../lesson/css/0726-1.html" />
    
    
    <link rel="prev" href="../../lesson/css/0725-5.html" />
    

        
    </head>
    <body>
        
        
    <div class="book"
        data-level="2.3"
        data-chapter-title="第三节课"
        data-filepath="lesson/css/20170726.md"
        data-basepath="../.."
        data-revision="Thu Aug 31 2017 12:00:31 GMT+0800 (中国标准时间)"
        data-innerlanguage="">
    

<div class="book-summary">
    <nav role="navigation">
        <ul class="summary">
            
            
            
            

            

            
    
        <li class="chapter " data-level="0" data-path="index.html">
            
                
                    <a href="../../index.html">
                
                        <i class="fa fa-check"></i>
                        
                        Introduction
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1" data-path="lesson/html/HTML.html">
            
                
                    <a href="../../lesson/html/HTML.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.</b>
                        
                        一.HTML
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1" data-path="lesson/html/20170718.html">
            
                
                    <a href="../../lesson/html/20170718.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.</b>
                        
                        第一节课
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1.1" data-path="lesson/html/0718-3.html">
            
                
                    <a href="../../lesson/html/0718-3.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.1.</b>
                        
                        a标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.1.2" data-path="lesson/html/0718-2.html">
            
                
                    <a href="../../lesson/html/0718-2.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.2.</b>
                        
                        注释标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.1.3" data-path="lesson/html/0718-1.html">
            
                
                    <a href="../../lesson/html/0718-1.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.3.</b>
                        
                        块级和行内元素
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="lesson/html/20170719.html">
            
                
                    <a href="../../lesson/html/20170719.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.2.</b>
                        
                        第二节课
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="lesson/html/0719-3.html">
            
                
                    <a href="../../lesson/html/0719-3.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.2.1.</b>
                        
                        实体字符
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="lesson/html/0719-4.html">
            
                
                    <a href="../../lesson/html/0719-4.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.2.2.</b>
                        
                        文本格式化
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="lesson/html/0719-1.html">
            
                
                    <a href="../../lesson/html/0719-1.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.2.3.</b>
                        
                        audio音频标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.2.4" data-path="lesson/html/0719-2.html">
            
                
                    <a href="../../lesson/html/0719-2.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.2.4.</b>
                        
                        video音频标签
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="lesson/html/20170720.html">
            
                
                    <a href="../../lesson/html/20170720.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.3.</b>
                        
                        第三节课
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="lesson/html/input.html">
            
                
                    <a href="../../lesson/html/input.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.3.1.</b>
                        
                        课后补充
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="lesson/html/0720-1.html">
            
                
                    <a href="../../lesson/html/0720-1.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.3.2.</b>
                        
                        HTML表格
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.3.3" data-path="lesson/html/0720-2.html">
            
                
                    <a href="../../lesson/html/0720-2.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.3.3.</b>
                        
                        form表单
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="lesson/html/20170721.html">
            
                
                    <a href="../../lesson/html/20170721.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.4.</b>
                        
                        第四节课
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="lesson/html/0721-5.html">
            
                
                    <a href="../../lesson/html/0721-5.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.4.1.</b>
                        
                        icon
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="lesson/html/0721-2.html">
            
                
                    <a href="../../lesson/html/0721-2.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.4.2.</b>
                        
                        自定义列表
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.4.3" data-path="lesson/html/0721-3.html">
            
                
                    <a href="../../lesson/html/0721-3.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.4.3.</b>
                        
                        iframe内嵌框架
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.4.4" data-path="lesson/html/0721-4.html">
            
                
                    <a href="../../lesson/html/0721-4.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.4.4.</b>
                        
                        H5的语义化标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.4.5" data-path="lesson/html/0721-1.html">
            
                
                    <a href="../../lesson/html/0721-1.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.4.5.</b>
                        
                        图片的热区hotmap
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2" data-path="lesson/css/CSS.html">
            
                
                    <a href="../../lesson/css/CSS.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.</b>
                        
                        二.CSS
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.1" data-path="lesson/css/20170724.html">
            
                
                    <a href="../../lesson/css/20170724.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.</b>
                        
                        第一节课
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.1.1" data-path="lesson/css/0724-1.html">
            
                
                    <a href="../../lesson/css/0724-1.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.1.</b>
                        
                        元素选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.2" data-path="lesson/css/0724-3.html">
            
                
                    <a href="../../lesson/css/0724-3.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.2.</b>
                        
                        ID选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.3" data-path="lesson/css/0724-4.html">
            
                
                    <a href="../../lesson/css/0724-4.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.3.</b>
                        
                        关系选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.4" data-path="lesson/css/0724-5.html">
            
                
                    <a href="../../lesson/css/0724-5.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.4.</b>
                        
                        伪类选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.5" data-path="lesson/css/扩展.html">
            
                
                    <a href="../../lesson/css/扩展.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.5.</b>
                        
                        属性选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.6" data-path="lesson/css/扩展2.html">
            
                
                    <a href="../../lesson/css/扩展2.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.6.</b>
                        
                        伪元素选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.7" data-path="lesson/css/0724-2.html">
            
                
                    <a href="../../lesson/css/0724-2.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.7.</b>
                        
                        class类选择器
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.2" data-path="lesson/css/20170725.html">
            
                
                    <a href="../../lesson/css/20170725.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.</b>
                        
                        第二节课
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.2.1" data-path="lesson/css/0725-1.html">
            
                
                    <a href="../../lesson/css/0725-1.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.1.</b>
                        
                        字体样式
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2.2" data-path="lesson/css/0725-2.html">
            
                
                    <a href="../../lesson/css/0725-2.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.2.</b>
                        
                        文本描述
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2.3" data-path="lesson/css/0725-3.html">
            
                
                    <a href="../../lesson/css/0725-3.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.3.</b>
                        
                        文字阴影
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2.4" data-path="lesson/css/0725-4.html">
            
                
                    <a href="../../lesson/css/0725-4.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.4.</b>
                        
                        字体嵌入
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2.5" data-path="lesson/css/0725-5.html">
            
                
                    <a href="../../lesson/css/0725-5.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.5.</b>
                        
                        CSS颜色
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter active" data-level="2.3" data-path="lesson/css/20170726.html">
            
                
                    <a href="../../lesson/css/20170726.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.</b>
                        
                        第三节课
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.3.1" data-path="lesson/css/0726-1.html">
            
                
                    <a href="../../lesson/css/0726-1.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.1.</b>
                        
                        border边框
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.3.2" data-path="lesson/css/0726-2.html">
            
                
                    <a href="../../lesson/css/0726-2.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.2.</b>
                        
                        background背景
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.4" data-path="lesson/css/20170727.html">
            
                
                    <a href="../../lesson/css/20170727.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.4.</b>
                        
                        第四节课
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.4.1" data-path="lesson/css/0727-2.html">
            
                
                    <a href="../../lesson/css/0727-2.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.4.1.</b>
                        
                        文字溢出
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.4.2" data-path="lesson/css/0727-3.html">
            
                
                    <a href="../../lesson/css/0727-3.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.4.2.</b>
                        
                        word-break
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.4.3" data-path="lesson/css/0727-1.html">
            
                
                    <a href="../../lesson/css/0727-1.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.4.3.</b>
                        
                        文字对齐方式
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.5" data-path="lesson/css/20170728.html">
            
                
                    <a href="../../lesson/css/20170728.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.5.</b>
                        
                        第五节课
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.5.1" data-path="lesson/css/0728-1.html">
            
                
                    <a href="../../lesson/css/0728-1.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.5.1.</b>
                        
                        定位
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.5.2" data-path="lesson/css/0728-2.html">
            
                
                    <a href="../../lesson/css/0728-2.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.5.2.</b>
                        
                        z-index
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.6" data-path="lesson/css/20170731.html">
            
                
                    <a href="../../lesson/css/20170731.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.6.</b>
                        
                        第六节课
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.7" data-path="lesson/css/20170801.html">
            
                
                    <a href="../../lesson/css/20170801.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.7.</b>
                        
                        第七节课
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.7.1" data-path="lesson/css/0801-2.html">
            
                
                    <a href="../../lesson/css/0801-2.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.7.1.</b>
                        
                        git安装使用
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.7.2" data-path="lesson/css/0801-1.html">
            
                
                    <a href="../../lesson/css/0801-1.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.7.2.</b>
                        
                        SASS安装使用
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.8" data-path="lesson/css/20170802.html">
            
                
                    <a href="../../lesson/css/20170802.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.8.</b>
                        
                        第八节课
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.8.1" data-path="lesson/css/0802-1.html">
            
                
                    <a href="../../lesson/css/0802-1.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.8.1.</b>
                        
                        css3 过渡（transition）
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.8.2" data-path="lesson/css/0802-2.html">
            
                
                    <a href="../../lesson/css/0802-2.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.8.2.</b>
                        
                        css3 变换（transform）
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.9" data-path="lesson/css/20170803.html">
            
                
                    <a href="../../lesson/css/20170803.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.9.</b>
                        
                        第九节课
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.10" data-path="lesson/css/20170804.html">
            
                
                    <a href="../../lesson/css/20170804.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.10.</b>
                        
                        第十节课
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.10.1" data-path="lesson/css/0804-1.html">
            
                
                    <a href="../../lesson/css/0804-1.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.10.1.</b>
                        
                        滤镜
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="3" data-path="lesson/media/media.html">
            
                
                    <a href="../../lesson/media/media.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.</b>
                        
                        三.项目期间
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="3.1" data-path="lesson/css/20170807.html">
            
                
                    <a href="../../lesson/css/20170807.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.1.</b>
                        
                        鲁班项目(第一天)
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="3.1.1" data-path="lesson/css/20170808.html">
            
                
                    <a href="../../lesson/css/20170808.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.1.1.</b>
                        
                        鲁班项目(第二天)
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.1.2" data-path="lesson/css/20170809.html">
            
                
                    <a href="../../lesson/css/20170809.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.1.2.</b>
                        
                        鲁班项目(第三天)
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.1.3" data-path="lesson/css/20170811.html">
            
                
                    <a href="../../lesson/css/20170811.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.1.3.</b>
                        
                        鲁班项目(第四天)
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="3.2" data-path="lesson/viewport/20170814.html">
            
                
                    <a href="../../lesson/viewport/20170814.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.2.</b>
                        
                        viewport
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="3.2.1" data-path="lesson/viewport/20170814-1.html">
            
                
                    <a href="../../lesson/viewport/20170814-1.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.2.1.</b>
                        
                        viewport特性
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="3.3" data-path="lesson/viewport/20170815.html">
            
                
                    <a href="../../lesson/viewport/20170815.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.3.</b>
                        
                        移动端项目
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="3.3.1" data-path="lesson/viewport/20170816.html">
            
                
                    <a href="../../lesson/viewport/20170816.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.3.1.</b>
                        
                        倒霉
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="3.3.1.1" data-path="lesson/viewport/0816-1.html">
            
                
                    <a href="../../lesson/viewport/0816-1.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.3.1.1.</b>
                        
                        css长度单位
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="3.3.2" data-path="lesson/mobile-project/20170817project.html">
            
                
                    <a href="../../lesson/mobile-project/20170817project.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.3.2.</b>
                        
                        mobile项目入手
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.3.3" data-path="lesson/mobile-project/20170818.html">
            
                
                    <a href="../../lesson/mobile-project/20170818.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.3.3.</b>
                        
                        记录
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.3.4" data-path="lesson/viewport/20170821.html">
            
                
                    <a href="../../lesson/viewport/20170821.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.3.4.</b>
                        
                        项目中所遇的问题
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.3.5" data-path="lesson/viewport/20170822.html">
            
                
                    <a href="../../lesson/viewport/20170822.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.3.5.</b>
                        
                        当日总结
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.3.6" data-path="lesson/viewport/20170823.html">
            
                
                    <a href="../../lesson/viewport/20170823.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.3.6.</b>
                        
                        上交测试版
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.3.7" data-path="lesson/viewport/20170824.html">
            
                
                    <a href="../../lesson/viewport/20170824.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.3.7.</b>
                        
                        当日总结
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="3.4" data-path="lesson/css/20170830.html">
            
                
                    <a href="../../lesson/css/20170830.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.4.</b>
                        
                        接触框架
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.5" data-path="lesson/css/20170831.html">
            
                
                    <a href="../../lesson/css/20170831.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.5.</b>
                        
                        语法与规则 Rules
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    


            
            <li class="divider"></li>
            <li>
                <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
                    Published with GitBook
                </a>
            </li>
            
        </ul>
    </nav>
</div>

    <div class="book-body">
        <div class="body-inner">
            <div class="book-header" role="navigation">
    <!-- Actions Left -->
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="../../" >你好,欢迎来到MyNote</a>
    </h1>
</div>

            <div class="page-wrapper" tabindex="-1" role="main">
                <div class="page-inner">
                
                
                    <section class="normal" id="section-">
                    
                        <h2 id="&#x6BCF;&#x65E5;&#x4E00;&#x53E5;&#xFF1A;the-most-fearful-enemy-is-not-having-a-firm-conviction&#x6700;&#x53EF;&#x6015;&#x7684;&#x654C;&#x4EBA;&#xFF0C;&#x5C31;&#x662F;&#x6CA1;&#x6709;&#x575A;&#x5F3A;&#x7684;&#x4FE1;&#x5FF5;&#x3002;&#x7F57;&#x66FC;&#xB7;&#x7F57;&#x5170;">&#x6BCF;&#x65E5;&#x4E00;&#x53E5;&#xFF1A;The most fearful enemy is not having a firm conviction.(&#x6700;&#x53EF;&#x6015;&#x7684;&#x654C;&#x4EBA;&#xFF0C;&#x5C31;&#x662F;&#x6CA1;&#x6709;&#x575A;&#x5F3A;&#x7684;&#x4FE1;&#x5FF5;&#x3002;--&#x7F57;&#x66FC;&#xB7;&#x7F57;&#x5170;)</h2>
<h3 id="&#x89E3;&#x6790;&#xFF1A;&#x4FE1;&#x5FF5;&#x662F;&#x610F;&#x5FD7;&#x884C;&#x4E3A;&#x7684;&#x57FA;&#x7840;&#xFF0C;&#x662F;&#x4E2A;&#x4F53;&#x52A8;&#x673A;&#x76EE;&#x6807;&#x4E0E;&#x5176;&#x6574;&#x4F53;&#x957F;&#x8FDC;&#x76EE;&#x6807;&#x76F8;&#x4E92;&#x7684;&#x7EDF;&#x4E00;&#x3002;&#x5176;&#x5B9E;&#x5F88;&#x591A;&#x65F6;&#x5019;&#x81EA;&#x5DF1;&#x6700;&#x5927;&#x7684;&#x7ADE;&#x4E89;&#x5BF9;&#x624B;&#x3001;&#x6700;&#x5927;&#x7684;&#x654C;&#x4EBA;&#x3001;&#x6700;&#x5927;&#x7684;&#x963B;&#x788D;&#x2014;&#x2014;&#x90FD;&#x662F;&#x81EA;&#x5DF1;&#xFF0C;&#x6218;&#x80DC;&#x81EA;&#x5DF1;&#xFF0C;&#x7A7F;&#x8D8A;&#x81EA;&#x6211;&#x3002;&#x6709;&#x65F6;&#x5019;&#x5C31;&#x4F1A;&#x4EA7;&#x751F;&#x8D28;&#x7684;&#x98DE;&#x8DC3;&#xFF01;">&#x89E3;&#x6790;&#xFF1A;&#x4FE1;&#x5FF5;&#x662F;&#x610F;&#x5FD7;&#x884C;&#x4E3A;&#x7684;&#x57FA;&#x7840;&#xFF0C;&#x662F;&#x4E2A;&#x4F53;&#x52A8;&#x673A;&#x76EE;&#x6807;&#x4E0E;&#x5176;&#x6574;&#x4F53;&#x957F;&#x8FDC;&#x76EE;&#x6807;&#x76F8;&#x4E92;&#x7684;&#x7EDF;&#x4E00;&#x3002;&#x5176;&#x5B9E;&#x5F88;&#x591A;&#x65F6;&#x5019;&#x81EA;&#x5DF1;&#x6700;&#x5927;&#x7684;&#x7ADE;&#x4E89;&#x5BF9;&#x624B;&#x3001;&#x6700;&#x5927;&#x7684;&#x654C;&#x4EBA;&#x3001;&#x6700;&#x5927;&#x7684;&#x963B;&#x788D;&#x2014;&#x2014;&#x90FD;&#x662F;&#x81EA;&#x5DF1;&#xFF0C;&#x6218;&#x80DC;&#x81EA;&#x5DF1;&#xFF0C;&#x7A7F;&#x8D8A;&#x81EA;&#x6211;&#x3002;&#x6709;&#x65F6;&#x5019;&#x5C31;&#x4F1A;&#x4EA7;&#x751F;&#x8D28;&#x7684;&#x98DE;&#x8DC3;&#xFF01;</h3>
<h2 id="&#x5FC3;&#x5F97;&#xFF1A;&#x505A;&#x5230;&#xFF1A;&#x5B66;&#x524D;&#x9884;&#x4E60;&#xFF0C;&#x5B66;&#x540E;&#x6E29;&#x4E60;&#x3002;&#x4FD7;&#x8BDD;&#x8BF4;&#xFF1A;&#x5B66;&#x800C;&#x65F6;&#x4E60;&#x4E4B;&#xFF0C;&#x6E29;&#x6545;&#x800C;&#x77E5;&#x65B0;&#x3002;&#x53EA;&#x6709;&#x4E0D;&#x65AD;&#x7684;&#x5DE9;&#x56FA;&#xFF0C;&#x624D;&#x4F1A;&#x6DF1;&#x523B;&#x7684;&#x5370;&#x5728;&#x8111;&#x6D77;&#x91CC;&#x3002;">&#x5FC3;&#x5F97;&#xFF1A;&#x505A;&#x5230;&#xFF1A;&#x5B66;&#x524D;&#x9884;&#x4E60;&#xFF0C;&#x5B66;&#x540E;&#x6E29;&#x4E60;&#x3002;&#x4FD7;&#x8BDD;&#x8BF4;&#xFF1A;&#x5B66;&#x800C;&#x65F6;&#x4E60;&#x4E4B;&#xFF0C;&#x6E29;&#x6545;&#x800C;&#x77E5;&#x65B0;&#x3002;&#x53EA;&#x6709;&#x4E0D;&#x65AD;&#x7684;&#x5DE9;&#x56FA;&#xFF0C;&#x624D;&#x4F1A;&#x6DF1;&#x523B;&#x7684;&#x5370;&#x5728;&#x8111;&#x6D77;&#x91CC;&#x3002;</h2>
<h3 id="css-&#x6846;&#x6A21;&#x578B;&#x6982;&#x8FF0;">CSS &#x6846;&#x6A21;&#x578B;&#x6982;&#x8FF0;</h3>
<blockquote>
<p>CSS &#x6846;&#x6A21;&#x578B; (Box Model) &#x89C4;&#x5B9A;&#x4E86;&#x5143;&#x7D20;&#x6846;&#x5904;&#x7406;&#x5143;&#x7D20;&#x5185;&#x5BB9;&#x3001;&#x5185;&#x8FB9;&#x8DDD;&#x3001;&#x8FB9;&#x6846; &#x548C; &#x5916;&#x8FB9;&#x8DDD; &#x7684;&#x65B9;&#x5F0F;.   </p>
<ul>
<li>&#x5143;&#x7D20;&#x6846;&#x7684;&#x6700;&#x5185;&#x90E8;&#x5206;&#x662F;&#x5B9E;&#x9645;&#x7684;&#x5185;&#x5BB9;&#xFF0C;&#x76F4;&#x63A5;&#x5305;&#x56F4;&#x5185;&#x5BB9;&#x7684;&#x662F;&#x5185;&#x8FB9;&#x8DDD;&#x3002;&#x5185;&#x8FB9;&#x8DDD;&#x5448;&#x73B0;&#x4E86;&#x5143;&#x7D20;&#x7684;&#x80CC;&#x666F;&#x3002;&#x5185;&#x8FB9;&#x8DDD;&#x7684;&#x8FB9;&#x7F18;&#x662F;&#x8FB9;&#x6846;&#x3002;&#x8FB9;&#x6846;&#x4EE5;&#x5916;&#x662F;&#x5916;&#x8FB9;&#x8DDD;&#xFF0C;&#x5916;&#x8FB9;&#x8DDD;&#x9ED8;&#x8BA4;&#x662F;&#x900F;&#x660E;&#x7684;&#xFF0C;&#x56E0;&#x6B64;&#x4E0D;&#x4F1A;&#x906E;&#x6321;&#x5176;&#x540E;&#x7684;&#x4EFB;&#x4F55;&#x5143;&#x7D20;&#x3002;</li>
<li>&#x5185;&#x8FB9;&#x8DDD;&#x3001;&#x8FB9;&#x6846;&#x548C;&#x5916;&#x8FB9;&#x8DDD;&#x90FD;&#x662F;&#x53EF;&#x9009;&#x7684;&#xFF0C;&#x9ED8;&#x8BA4;&#x503C;&#x662F;&#x96F6;&#x3002;&#x4F46;&#x662F;&#xFF0C;&#x8BB8;&#x591A;&#x5143;&#x7D20;&#x5C06;&#x7531;&#x7528;&#x6237;&#x4EE3;&#x7406;&#x6837;&#x5F0F;&#x8868;&#x8BBE;&#x7F6E;&#x5916;&#x8FB9;&#x8DDD;&#x548C;&#x5185;&#x8FB9;&#x8DDD;&#x3002;&#x53EF;&#x4EE5;&#x901A;&#x8FC7;&#x5C06;&#x5143;&#x7D20;&#x7684; margin &#x548C; padding &#x8BBE;&#x7F6E;&#x4E3A;&#x96F6;&#x6765;&#x8986;&#x76D6;&#x8FD9;&#x4E9B;&#x6D4F;&#x89C8;&#x5668;&#x6837;&#x5F0F;&#x3002;</li>
</ul>
</blockquote>
<pre><code>&#x63D0;&#x793A;&#xFF1A;&#x80CC;&#x666F;&#x5E94;&#x7528;&#x4E8E;&#x7531;&#x5185;&#x5BB9;&#x548C;&#x5185;&#x8FB9;&#x8DDD;&#x3001;&#x8FB9;&#x6846;&#x7EC4;&#x6210;&#x7684;&#x533A;&#x57DF;&#x3002;
</code></pre><table>
<thead>
<tr>
<th style="text-align:center">&#x529F;&#x80FD;</th>
<th style="text-align:center">&#x63CF;&#x8FF0;</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:center">element</td>
<td style="text-align:center">&#x5143;&#x7D20;&#x3002;</td>
</tr>
<tr>
<td style="text-align:center">padding</td>
<td style="text-align:center">&#x5185;&#x8FB9;&#x8DDD;&#xFF0C;&#x4E5F;&#x6709;&#x8D44;&#x6599;&#x5C06;&#x5176;&#x7FFB;&#x8BD1;&#x4E3A;&#x586B;&#x5145;&#x3002;</td>
</tr>
<tr>
<td style="text-align:center">border</td>
<td style="text-align:center">&#x8FB9;&#x6846;&#x3002;</td>
</tr>
<tr>
<td style="text-align:center">margin</td>
<td style="text-align:center">&#x5916;&#x8FB9;&#x8DDD;&#xFF0C;&#x4E5F;&#x6709;&#x8D44;&#x6599;&#x5C06;&#x5176;&#x7FFB;&#x8BD1;&#x4E3A;&#x7A7A;&#x767D;&#x6216;&#x7A7A;&#x767D;&#x8FB9;&#x3002;</td>
</tr>
<tr>
<td style="text-align:center">content</td>
<td style="text-align:center">&#x5185;&#x5BB9;</td>
</tr>
</tbody>
</table>
<pre><code>1. &#x76D2;&#x5B50;&#x7684;&#x5185;&#x5BB9;&#x901A;&#x8FC7;&#x5BBD;&#x9AD8;&#x8BBE;&#x7F6E;(width/height)
2. &#x76D2;&#x5B50;&#x7684;&#x5185;&#x8FB9;&#x8DDD;,&#x8FB9;&#x6846;&#x8DDF;&#x5185;&#x5BB9;&#x4E4B;&#x95F4;&#x7684;&#x95F4;&#x9699;(padding)
3. &#x76D2;&#x5B50;&#x7684;&#x5916;&#x8FB9;&#x8DDD;&#xFF0C;&#x8FB9;&#x6846;&#x4EE5;&#x5916;&#x7684;&#x7A7A;&#x9699;(margin)
&#x8865;&#x5145;&#xFF1A;box-sizing&#x5C5E;&#x6027;&#xFF0C;&#x7A33;&#x5B9A;&#x76D2;&#x5B50;&#x7684;&#x5927;&#x5C0F;&#xFF0C;&#x6539;&#x53D8;&#x5BBD;&#x9AD8;&#x7684;&#x8BBE;&#x7F6E;&#x89C4;&#x5219;&#xFF0C;&#x7531;&#x63A7;&#x5236;&#x5185;&#x5BB9;&#x76D2;&#x5B50;&#x53D8;&#x66F4;&#x4E3A;&#x63A7;&#x5236;&#x8FB9;&#x6846;&#x4EE5;&#x5185;&#x7684;&#x533A;&#x57DF;
</code></pre><blockquote>
<p>&#x5728; w3school&#xFF0C;&#x6211;&#x4EEC;&#x628A; padding &#x548C; margin &#x7EDF;&#x4E00;&#x5730;&#x79F0;&#x4E3A;&#x5185;&#x8FB9;&#x8DDD;&#x548C;&#x5916;&#x8FB9;&#x8DDD;&#x3002;&#x8FB9;&#x6846;&#x5185;&#x7684;&#x7A7A;&#x767D;&#x662F;&#x5185;&#x8FB9;&#x8DDD;&#xFF0C;&#x8FB9;&#x6846;&#x5916;&#x7684;&#x7A7A;&#x767D;&#x662F;&#x5916;&#x8FB9;&#x8DDD;&#xFF0C;&#x5F88;&#x5BB9;&#x6613;&#x8BB0;&#x5427;&#xFF1A;&#xFF09;</p>
</blockquote>
<p>&#x2026;&#x2026;&#x2026;&#x2026;</p>
<h3 id="css-&#x8FB9;&#x6846;&#xFF08;border&#xFF09;">CSS &#x8FB9;&#x6846;&#xFF08;border&#xFF09;</h3>
<blockquote>
<ul>
<li>&#x5143;&#x7D20;&#x7684;&#x8FB9;&#x6846; (border) &#x662F;&#x56F4;&#x7ED5;&#x5143;&#x7D20;&#x5185;&#x5BB9;&#x548C;&#x5185;&#x8FB9;&#x8DDD;&#x7684;&#x4E00;&#x6761;&#x6216;&#x591A;&#x6761;&#x7EBF;&#x3002;</li>
<li>CSS border &#x5C5E;&#x6027;&#x5141;&#x8BB8;&#x4F60;&#x89C4;&#x5B9A;&#x5143;&#x7D20;&#x8FB9;&#x6846;&#x7684;&#x6837;&#x5F0F;&#x3001;&#x5BBD;&#x5EA6;&#x548C;&#x989C;&#x8272;&#x3002;</li>
</ul>
</blockquote>
<pre><code>&#x8BED;&#x6CD5;&#xFF1A;border&#xFF1A;&lt;line-width&gt; || &lt;line-style&gt; || &lt;color&gt;
</code></pre><p><strong>&#x53D6;&#x503C;&#xFF1A;</strong>
|&#x529F;&#x80FD;|&#x63CF;&#x8FF0;|
|:--:|:--:|
|<code>&lt;line-width&gt;</code>|&#x8BBE;&#x7F6E;&#x6216;&#x68C0;&#x7D22;&#x5BF9;&#x8C61;&#x8FB9;&#x6846;&#x5BBD;&#x5EA6;&#x3002;|
|<code>&lt;line-style&gt;</code>|&#x8BBE;&#x7F6E;&#x6216;&#x68C0;&#x7D22;&#x5BF9;&#x8C61;&#x8FB9;&#x6846;&#x6837;&#x5F0F;&#x3002;|
|<code>&lt;color&gt;</code>|&#x8BBE;&#x7F6E;&#x6216;&#x68C0;&#x7D22;&#x5BF9;&#x8C61;&#x8FB9;&#x6846;&#x989C;&#x8272;&#x3002;|</p>
<pre><code class="lang-html">&#x793A;&#x4F8B;&#xFF1A;
<span class="hljs-doctype">&lt;!DOCTYPE html&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-title">html</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-title">head</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-title">meta</span> <span class="hljs-attribute">charset</span>=<span class="hljs-value">&quot;utf-8&quot;</span> /&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-title">meta</span> <span class="hljs-attribute">name</span>=<span class="hljs-value">&quot;author&quot;</span> <span class="hljs-attribute">content</span>=<span class="hljs-value">&quot;Joy Du(&#x98D8;&#x96F6;&#x96FE;&#x96E8;), dooyoe@gmail.com, www.doyoe.com&quot;</span> /&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-title">style</span>&gt;</span><span class="css">
            <span class="hljs-class">.test</span> <span class="hljs-rules">{
            <span class="hljs-rule"><span class="hljs-attribute">border</span>:<span class="hljs-value"> <span class="hljs-number">5px</span> solid <span class="hljs-hexcolor">#000</span></span></span>;
            }</span>
        </span><span class="hljs-tag">&lt;/<span class="hljs-title">style</span>&gt;</span>
    <span class="hljs-tag">&lt;/<span class="hljs-title">head</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-title">body</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-title">div</span> <span class="hljs-attribute">class</span>=<span class="hljs-value">&quot;test&quot;</span>&gt;</span>&#x5B9A;&#x4E49;&#x8FB9;&#x6846;&#x7279;&#x6027;<span class="hljs-tag">&lt;/<span class="hljs-title">div</span>&gt;</span>
    <span class="hljs-tag">&lt;/<span class="hljs-title">body</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-title">html</span>&gt;</span>
</code></pre>
<p>&#x2026;&#x2026;&#x2026;&#x2026;&#x672A;&#x5B8C;&#x5F85;&#x7EED;</p>
<p>&#x2026;&#x2026;&#x2026;&#x2026;&#x672A;&#x5B8C;&#x5F85;&#x7EED;</p>

                    
                    </section>
                
                
                </div>
            </div>
        </div>

        
        <a href="../../lesson/css/0725-5.html" class="navigation navigation-prev " aria-label="Previous page: CSS颜色"><i class="fa fa-angle-left"></i></a>
        
        
        <a href="../../lesson/css/0726-1.html" class="navigation navigation-next " aria-label="Next page: border边框"><i class="fa fa-angle-right"></i></a>
        
    </div>
</div>

        
<script src="../../gitbook/app.js"></script>

    
    <script src="../../gitbook/plugins/gitbook-plugin-expandable-chapters-small/expandable-chapters-small.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-search/lunr.min.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-search/search.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-sharing/buttons.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-fontsettings/buttons.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-livereload/plugin.js"></script>
    

<script>
require(["gitbook"], function(gitbook) {
    var config = {"expandable-chapters-small":{},"highlight":{},"search":{"maxIndexSize":1000000},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"livereload":{}};
    gitbook.start(config);
});
</script>

        
    </body>
    
</html>
